import request from '@/utils/request'

function formatRequestUri(name) {
  return 'hr/EmpPost/' + name
}
export function gets(empId, companyId) {
  return request({
    url: formatRequestUri('Gets'),
    method: 'get',
    params: {
      companyId,
      empId
    }
  })
}
export function add(data) {
  return request({
    url: formatRequestUri('Add'),
    method: 'post',
    data
  })
}
export function deletePost(id) {
  return request({
    url: formatRequestUri('Delete'),
    method: 'get',
    params: {
      id
    }
  })
}
